//
//  XCRadioFirDataModel.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/11.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCRadioFirDataModel.h"

@implementation XCRadioFirDataModel

- (void)dealloc {
    [_data release];
    [_tag_type_name release];
    [_RadioSecDataModel release];
    [_mutableArray release];
    [super dealloc];
}
- (instancetype)initWithDataSource:(NSDictionary *)dataSource
{
    self = [super initWithDataSource:dataSource];
    if (self) {

        self.mutableArray = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in self.data) {
            XCRadioSecDataModel *radioSecModel = [[XCRadioSecDataModel alloc] initWithDataSource:dic];
            [self.mutableArray addObject:radioSecModel];
        }
        self.data = [NSArray arrayWithObject:self.mutableArray];
    }
    return self;
}
@end
